import request from '@/utils/request'

export function getClassify() {
  return request({
    url: 'classify/getClassify',
    method: 'get'
  })
}

export function getClassifyPermissions() {
  return request({
    url: '/classify/getClassifyPermissions',
    method: 'get'
  })
}

export function getClassifyPermissionsPage(val) {
  return request({
    url: '/classify/getClassifyPermissions?page=' + val,
    method: 'get',
    val
  })
}

export function deleteClassifyPermissions(data) {
  return request({
    url: '/classify/deleteClassifyPermissions',
    method: 'post',
    data
  })
}

export function insertClassifyPermissions(data) {
  return request({
    url: '/classify/insertClassifyPermissions',
    method: 'post',
    data
  })
}

export function updateClassifyPermissions(data) {
  return request({
    url: '/classify/updateClassifyPermissions',
    method: 'post',
    data
  })
}
